package com.dz.service;

import com.dz.dto.SetmealDTO;
import com.dz.dto.SetmealPageQueryDTO;
import com.dz.entity.SetMeal;
import com.dz.result.Result;
import com.dz.vo.DishItemVO;
import com.dz.vo.PageVo;
import com.dz.vo.SetmealVO;

import java.util.List;

/**
 * @author 鄧浩奇
 * @classname SetmealService
 * @description
 * @since 2023/12/28 19:38
 **/

public interface SetmealService {
    Result<String> insertSetmeal(SetmealDTO setmealDTO);

    PageVo page(SetmealPageQueryDTO queryDTO);

    SetmealVO getById(Long id);

    Result<String> update(SetmealDTO setmealDTO);

    Result<String> deleteBatch(List<Long> idsIsLong);

    Result<String> changeStatus(Long id, Integer status);


    /*
    * 根据分类id查询套餐信息
    * */
    List<SetMeal> getListByCategoryId(Long categoryId);

    /*
    * 根据套餐id查询包含的菜品
    * */
    List<DishItemVO> getDishBySetmealId(Long setmealId);
}
